#set($title ="$display.alt($domain.info('newTopics'),'myForum')")
#parse("/home/parseHeader.html")
#parse("/home/_headerSearch.html")
<div class="mainbox topiclist">
<h1>$title</h1>
<table cellspacing="0" cellpadding="0">
  <thead class="category">
  <tr>
    <td>&nbsp;</td>
    <td>标题</td>
	<td class="author">作者</td>
    <td class="nums">回复/查看</td>
    <td class="lastpost">所属版块</td>
  </tr></thead>

	<tbody>
		  #if ($null.isNull($topics) || $topics.size()==0)
		<tr>
			<td class="folder">&nbsp;</td><td colspan="4">$domain.info("noTopics")</td>
		</tr>
		#else
		  #foreach($topic in $topics)
		   <tr>
                    <td class="folder">
                        <a title="新窗口打开" href='/topics/$encrypt.encrypt("$topic.topicid")' target="_blank">#folderType($topic.createtime,$topic.replies,$topic.state)</a>
                    </td>
                    <td>
                        <a href='/topics/$encrypt.encrypt("$topic.topicid")'>
                            <font color="$display.alt($topic.highcolor,'black')">
                                $topic.title
                            </font> 
                        </a>
						
                        #if($topic.attachicon=="A")
                        <label class="attach">
                            &nbsp;
                        </label>
                        #elseif($topic.attachicon=="I")
                        <label class="pic">
                            (&nbsp;图&nbsp;)&nbsp;
                        </label>
                        #else
                        <label>
                            $!topic.attach
                        </label>
                        #end
						#if($auth.isNewMember($date.format("yyyy-MM-dd HH:mm:ss",$topic.createtime))=="true")
						<img src="/resource/new_member.gif" alt="新人贴" title="新人贴"> 
						#end
						#if($topic.isdigest=="T")
						<label><img alt="精华" src="/style/images/digest.gif" align="absmiddle">&nbsp;</label>
						#end
                    </td>
                    <td class="author">
                        <cite>
                            <a href="/members/$topic.userid">$topic.nickname</a>
                        </cite>
                        $date.format("yyyy-MM-dd HH:mm:ss",$topic.createtime)
                    </td>
                    <td class="nums">
                        <span>$topic.replies</span>
                        / $topic.visits
                    </td>
                    <td class="lastpost">
                       <a href='/forum/boards/$encrypt.encrypt("$topic.boardid")' target="_blank">$boardTool.getBoardName("$topic.boardid")</a>
                    </td>
                </tr>
		  #end 
		#end
	</tbody>
	
</table>
 #if ($null.isNull($topics) || $topics.size()==0)
 #else
    #if($pageCount==1)
    #else
    #parse("/board/_pager.html")
    #end
#end
</div>
<script type="text/javascript">
	var pagesCount =$pageCount;
	var pageIndex=$pageIndex;
</script>
#includeJs(["jquery.jqpagination.min","newTopics/newTopics"])
#includeCss(["jqpagination"])